﻿/*****************************************************************//**
 * @file    FITKViewAdaptorSpringPoint2Point.h
 * @brief   Graph object data adaptor for point to point spring.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-06-20
 *********************************************************************/

#ifndef __FITKVIEWADAPTORSPRINGPOINT2POINT_H__
#define __FITKVIEWADAPTORSPRINGPOINT2POINT_H__

#include "FITKVTKViewAdaptorBase.h"

#include "FITKVTKGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for point to point spring.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-06-20
     */
    class FITKVTKGRAPHADAPTORAPI FITKViewAdaptorSpringPoint2Point : public FITKVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKViewAdaptorSpringPoint2Point);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-06-20
         */
        explicit FITKViewAdaptorSpringPoint2Point() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-06-20
         */
        ~FITKViewAdaptorSpringPoint2Point() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-06-20
         */
        bool update() override;

    };

    // Regist spring adaptor
    Register2FITKViewAdaptorFactory(SpringP2P, Interface::FITKAbaSpringDashpotPoint2Point, FITKViewAdaptorSpringPoint2Point);
}   // namespace Exchange

#endif // __FITKVIEWADAPTORSPRINGPOINT2POINT_H__